﻿@{
    string groupid=Request.QueryString["groupid"];
    string stepid = Request.QueryString["stepid"];
    string flowid = Request.QueryString["flowid"];
    
    YJ.Platform.WorkFlowTask bwfTask = new YJ.Platform.WorkFlowTask();
    YJ.Platform.WorkFlow bwf = new YJ.Platform.WorkFlow();
    var taskList = bwfTask.GetTaskList(flowid.ToGuid(), groupid.ToGuid()).Where(p => !p.Comment.IsNullOrEmpty() && p.CompletedTime1.HasValue).OrderBy(p => p.Sort);
}
    <style type="text/css">
        .commenttable { margin:12px auto 0 auto; width:96%; background:#ededee; }
        .commenttable tr th { text-align:left; height:25px; background:#ffffff; font-weight:normal;}
        .commenttable tr td { height:28px; background:#ffffff;}
    </style>
@foreach (var task in taskList)
{
    string signSrc=string.Empty;
    if (task.IsSign.HasValue && task.IsSign == 1) 
    {
        signSrc = string.Concat(Url.Content("~/Content/UserSigns/"), task.ReceiveID, ".gif"); 
    }
    <table cellpadding="0" cellspacing="1" border="0" class="commenttable">
        <tr>
            <th style="width:30%;">&nbsp;步骤：@bwf.GetStepName(task.StepID, task.FlowID)</th>
            <th style="width:20%;">&nbsp;处理人：@task.ReceiveName</th>
            <th style="width:25%;">&nbsp;收件时间：@task.ReceiveTime.ToDateTimeStringS()</th>
            <th style="width:25%;">&nbsp;完成时间：@(task.CompletedTime1.HasValue?task.CompletedTime1.Value.ToDateTimeStringS():"")</th>
        </tr>
        <tr>
            <td colspan="5" style="">
            <div style="float:left; height:26px; padding:9px 0 0 6px; ">
            处理意见：@Html.Raw(task.Comment) 
            </div>
            <div style="float:left; height:26px; width:77px; margin:5px 20px 0 20px; background:url(@signSrc) no-repeat left center;">&nbsp;</div>
            </td>
        </tr>
        @if(!task.Files.IsNullOrEmpty()){
        <tr>
            <td colspan="5" style="padding:9px 6px;">
                @Html.Raw(YJ.Platform.Files.GetFilesShowString(task.Files, "", true))
            </td>
        </tr>
        }
    </table>
}